package com.rh.feign;

import com.rh.entity.CourseOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(name = "service-edu")
public interface CourseFeignService {
    /**
     * 根据课程id查询课程信息
     */
    @PostMapping("/eduservice/coursefront/getCourseInfoById/{id}")
    public CourseOrderVo getCourseInfo(@PathVariable("id") String id);
}
